package cn.lsc.feign;

import cn.lsc.result.JSONResult;
import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class CommonFallbackFactory implements FallbackFactory<commonFeign> {
    @Override
    public commonFeign create(Throwable throwable) {
        return new commonFeign() {
            @Override
            public JSONResult findByphone(String phone) {
                return JSONResult.error();
            }
        };
    }
}
